<?php

namespace App\Http\Controllers;

use App\AboutModel;
use App\ImageModel;
use App\NewsModel;
use App\ProModel;
use Illuminate\Http\Request;

class AdminController extends Controller
{
    //
    public function admin()
    {
        $about_msg = AboutModel::about_us_msg();
        $about_us = AboutModel::about_us_list();
        $news_get = NewsModel::get();
        $pros_get = ProModel::get_alone();
        $swiper = ImageModel::swiper_img_list();
        return view('admin.admin', [
            'about_other' => $about_msg,
            'about_us' => $about_us,
            'news_get' => $news_get,
            'pros_get' => $pros_get,
            'swiper' => $swiper
        ]);
    }
}
